
package com.bdtop.dbl.ui.activities.me;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.text.util.Linkify;
import android.widget.TextView;

import com.bdtop.dbl.BaseActivity;
import com.bdtop.dbl.R;
import com.bdtop.dbl.ui.view.TitleBar;

public class AboutServicesActivity extends BaseActivity {

    public static final void launch(Context context) {
        Intent intent = new Intent(context, AboutServicesActivity.class);
        context.startActivity(intent);
    }

    private TextView txPhone1, txPhone2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about_services);

        TitleBar mTitleBar = (TitleBar) findViewById(R.id.title_bar);
        mTitleBar.setTitle(R.string.about_services);
        mTitleBar.setBelongActivity(this);

        txPhone1 = (TextView) findViewById(R.id.tx_phone1);
        txPhone1.setAutoLinkMask(Linkify.ALL);
        txPhone1.setMovementMethod(LinkMovementMethod.getInstance());

        txPhone2 = (TextView) findViewById(R.id.tx_phone2);
        txPhone2.setAutoLinkMask(Linkify.ALL);
        txPhone2.setMovementMethod(LinkMovementMethod.getInstance());

    }
}
